import 'package:json_annotation/json_annotation.dart';

part 'ad_config.g.dart';

@JsonSerializable()
class AdConfig {
  final String adPositionType;
  final bool enable;
  final int maxSeconds;

  AdConfig(
    this.adPositionType,
    this.enable,
    this.maxSeconds,
  );
  factory AdConfig.fromJson(Map<String, dynamic> json) => _$AdConfigFromJson(json);

  Map<String, dynamic> toJson() => _$AdConfigToJson(this);
}
